import request from '@/utils/request'

// 查询人员转正列表
export function listHrBecomeWork(query) {
  return request({
    url: '/become/hrBecomeWork/list',
    method: 'get',
    params: query
  })
}

// 查询人员转正详细
export function getHrBecomeWork(id) {
  return request({
    url: '/become/hrBecomeWork/' + id,
    method: 'get'
  })
}

// 保存人员转正
export function saveHrBecomeWork(data) {
  return request({
    url: '/become/hrBecomeWork/save',
    method: 'post',
    data: data
  })
}

// 删除人员转正
export function delHrBecomeWork(id) {
  return request({
    url: '/become/hrBecomeWork/' + id,
    method: 'delete'
  })
}

// 导出人员转正
export function exportHrBecomeWork(query) {
  return request({
    url: '/become/hrBecomeWork/export',
    method: 'get',
    params: query
  })
}
